const { BaiduFanyiAPI } = require('baidu-fanyi-api');

const api = new BaiduFanyiAPI();

async function main() {
    await api.init();
    const data = await api.translate('我的', 'zh', 'en');
    console.log(data.tag[0]);
}

main();